package com.tledu.cyrus.dao;

import com.tledu.cyrus.domain.Student;

import java.sql.SQLException;
import java.util.List;

/**
 * @author cyrus
 */
public interface IStudentDao {

    List<Student> list(Student student) throws SQLException;

    List<Student> page(Student student, int pageNum, int pageSize) throws SQLException;

    int count(Student student) throws SQLException;

    Student getStudent(int id) throws SQLException;

    int addStudent(Student student) throws SQLException;

    int updateStudent(Student student) throws SQLException;

    int deleteStudent(int id) throws SQLException;
}
